package com.sky.mapper.common;

import com.sky.dto.DishDTO;
import com.sky.pojo.DishFlavor;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface DishFlavorsMapper {


   // @Insert("insert into dish_flavor values (null,#{dishId},#{name},#{value})")

    void addDishFlavor(List<DishFlavor> dishFlavors) ;

    boolean deleteDishFlavorsByIds(@Param("ids") List<Long> ids);

    @Select("select * from dish_flavor where dish_id = #{dishId}")
    List<DishFlavor> findDishFlavorsById(Long dishId);

    @Delete("delete from dish_flavor where dish_id = #{dishId}")
    void deleteDishFlavorsById(Long dishId);

}
